import instance from "@/tools/axios";

//添加
const DedAdd = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/Deductions/Add", data);
};

//分页
const DedPagination = async (params: any): Promise<ResponseApiDto> => {
  return instance.get("/Deductions/Pagination", params);
};

//添加
const DedDelete = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/Deductions/Delete", data);
};

export { DedAdd, DedPagination, DedDelete };
